package cn.creditms.consumer.feign;

import cn.creditms.consumer.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "creditms-provider")
public interface UserFeignClient {
    @RequestMapping(value = "/mybatis/{id}", method = RequestMethod.GET)
    List<User> test02(@PathVariable("id") Long id);

}